const glob = require('glob-all');

describe('Checking generated html files', () => {
    it('shoud generate html files', done => {
        const files  = glob.sync([
            './dist/index.html',
            './dist/search.html'
        ]);

        if (files.length > 0) {
            done();
        }
        else {
            throw new Error('no html files generated');
        }
    });
});
